<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class Feedback_model extends CI_Model {
	function add($data) {
		$this->db->trans_start();
		$this->db->insert('feedback', $data);
		$insert_id = $this->db->insert_id();
		$this->db->trans_complete();
		log_message('debug', $this->db->last_query());
		
		return $insert_id;
	}
}